package operation;

import book.Book;
import book.BookList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28779
 * Date: 2023-04-01
 * Time: 9:41
 */
public class ShowOperation implements IOPeration{

    @Override
    public void work(BookList bookList) {
        int currentSize = bookList.getUseSize();
        for (int i = 0; i < currentSize; i++) {
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
        //System.out.println("打印所有图书！！");
    }
}
